﻿
/*$(function () {
    $("#articleSearch").submit(function (event) {
        event.preventDefault();
        var form = $(this);
        $.getJSON(form.attr("action"), form.serialize(), function (data) {
            $("#articleSearch").tmpl(data).appendTo("#article-list");
        });
    });

    $("input[data-autocomplete-source]").each(function () {
        var target = $(this);
        target.autocomplete({ source: target.attr("data-autocomplete-source") });
    });
});*/

function searchFailed() {
    $("#searchresults").html("Sorry, there was a problem with the search.");
}